home *** CD-ROM | disk | FTP | other *** search
/ Hackers Handbook - Millenium Edition / Hackers Handbook.iso / library / hack99 / telnet_text.txt < prev    next >
Encoding:
Text File  |  1999-04-11  |  9.2 KB  |  192 lines

  1. ===================================
  2.  
  3. | T e l n e t   E x p l a i n e d |
  4.  
  5. ===================================
  6.  
  7. Mar 24 1999
  8. Written by [warlock]
  9. Legion of Magic
  10. ----------
  11.  
  12. This text is for informational and educational purposes only.
  13.  
  14. Introduction:
  15. -------------
  16.  
  17. This text was designed to help non technically-oriented users understand telnet clients 
  18. and how they work. From day to day I am asked 'How do I use telnet?????' by lamers who 
  19. cannot be bothered to RTFM/help file/readme.
  20.  
  21. Tools:
  22. ------
  23.  
  24. It is recomended you read all of this text before using telnet
  25. It is also recommended that you read this in Netscape Navigator(better text layout)
  26. 1. Brain or other reasonably fast logical thought/deduction and information storage device
  27. 2. Telnet client
  28.       - Ewan (highly recommended) 
  29. or    - Telnet (Convenient because it comes with windows, lacks features though)
  30.  
  31. I will describe the Windows telnet client, then Ewan.
  32.  
  33. What is telnet?
  34. ---------------
  35.  
  36. A terminal emulation program (telnet emulates crusty old puters, like the Digital VT-100 and
  37.  VT-102, for example) for TCP/IP networks such as the Internet. The Telnet client runs on your 
  38. computer and connects your PC to a server on the network. You can then enter commands through 
  39. the Telnet program and they will be executed as if you were entering them directly on the server 
  40. console. This enables you to control the server and communicate with other servers on 
  41. the network. To start a telnet session, you must connect to a server on an open port and (usually) enter a login and password.
  42.  
  43. How to use windows telnet:
  44. --------------------------
  45.  
  46. The windows telnet client can be found in the windows directory 
  47. (don't confuse this with HyperTerminal)
  48. Open it and once loaded you will now be staring at a blank window.
  49. (if the interface looks boring enough to make you want to quit, then remember that before the 
  50. days of graphical client programs like email/news clients, web browsers etc etc, telnet was the 
  51. only window into the internet.)
  52. Now, click on 'Connect' in the menu bar, then 'Remote System'
  53. You will then be presented with a dialog box that looks like this:
  54.          _____________________________
  55.         |Connect    ________________  |
  56.         |Hostname :|________________| | 
  57.         |Port     :|________________| |
  58.         |Term type:|________________| | 
  59.         | ___________      __________ |
  60.         ||           |    |          ||
  61.         ||  Connect  |    |  Cancel  ||
  62.         ||___________|    |__________||
  63.         |_____________________________|
  64.  
  65. A good place for your first telnet connection is your shell account. A shell account is 
  66. basically a Unix terminal. If you have a shell account (or just 'shell') then you can run 
  67. apps on the shell and other kewl stuff. To find out if you have a shell account and its URL, 
  68. check out your ISP's webpage or email the system administrator.
  69. Or, you can try telnetting to an FTP server. Any ISP worth their salt should have an FTP server. 
  70. This is the telnet equivalent of using an FTP client or web browser to browse an FTP archive.
  71. In the 'Connect' field, type 
  72.      ftp.foobarisp.com
  73. (substitute your ISP's domain for 'foobarisp.com'. If my ISP's website was at www.abc.com, 
  74. my domain would be abc.com, i.e. my ISP's web URL, but without the 'www.'
  75. In the 'Port' dialog, type the number 21. FTP (File Transfer Protocol) is bound to port 21.
  76. Now click connect.
  77. Once connected, you will presented with a screen like this:
  78.  _______________________________________
  79. |_Telnet________________________________|
  80. |_Connect_Edit_Terminal_Help____________|
  81. |220 proFTPD                            |    
  82. |                                       |
  83. |                                       |
  84. |                                       |
  85. |                                       |    
  86. |                                       |
  87. |                                       |
  88. |                                       |
  89. |                                       |
  90. |                                       |
  91. |                                       |
  92. |_______________________________________|
  93.  
  94. You will see a prompt like the one above. This prompt indicates the daemon (and often version.)
  95. A daemon (pronounced 'demon') is a program that runs on a remote computer and manages a 
  96. particular service, i.e. the FTP daemon controls connections to the FTP port and generally 
  97. manages the FTP side of things. The mail daemon, like 'sendmail' for instance, manages things 
  98. when you send an email and so forth.
  99. Ok, so at the prompt, type:
  100.  
  101.     user anonymous
  102.  
  103. (but, if it already has a prompt saying something like 'Username' or 'Login', drop the 'user' and 
  104. type just anonymous, without the 'user' bit.)
  105.  
  106. After it says "guest login accepted yada yada", type:
  107.      pass myemailaddress@foobarisp.com 
  108.  
  109. (once again, if it comes up with a 'Password:' prompt, drop the 'pass' bit and enter only your 
  110. email address.)
  111.  
  112. It will then display some more trivia. Now you've logged in, type:
  113.  
  114.      help
  115.  
  116. This will display all the different commands the FTP server understands. Play around with 
  117. some commands.
  118.  
  119. Once you've finished playing around with port 21, try a few different ports, like 
  120. the ones listed below. Your ISP may not offer all of these services, but have a go and use some 
  121. common sense (i.e. i wouldn't try to connect to port 21 on my mail server, nor would I try to 
  122. connect to port 25 on my FTP server.)
  123.  
  124. Also, try telnetting to some puters outside of your ISP, like some anonymous FTP sites.
  125.  
  126. Service                 Port
  127. ------                 ----
  128. FTP                     - 21   (explained in detail already)
  129. telnet                  - 23   (the default telnet port. This is used for system admin.)
  130. Mail                    - 25   (this port is for sendmail, the unix mail-sending daemon)
  131. time                    - 37   (the mind boggles at what this could possibly be)
  132. Finger                  - 79   (used for 'fingering' email accounts, which gives you info on people who 
  133.                                have email accounts on that puter)
  134. HTTP                    - 80   (the mind boggles)
  135. POP3                    - 110  (the port in charge of the daemon to receive mail. 
  136.                    Contrast this with 25, the port for the sending-mail daemon. 
  137.                                Don't confuse the two.)
  138. News                    - 119  (the port in charge of the news daemon. If you don't know what 
  139.                            newsgroups are then I really don't know why you're reading 
  140.                                this text)
  141.  
  142. Now you have some ports to connect to, I'll move on to Ewan.
  143. Open Ewan and you will presented with a box that looks like this:
  144.          _______________________________________________
  145.         |_Connect to Site_______________________________|
  146.         | ______________________________   ________     |
  147.         ||                              | |__ok ___|    |
  148.         ||                              |  ________     |
  149.         ||                              | |_cancel_|    |                     
  150.         ||                              |               |                     
  151.         ||                              |  ________     |
  152.         ||                              | |__New___|    |
  153.         ||                              | |_Delete_|    |                     
  154.         ||                              | |__Edit__|    |
  155.         ||                              |               |
  156.         ||                              |  ________     |
  157.         ||______________________________| |__Help__|    |
  158.         | () Private site list                          |
  159.         | () Shared site list                           |
  160.         |_______________________________________________|
  161.  
  162. Click 'New' and you will be presented with this dialog:
  163.          ________________________________________
  164.         |_Address________________________________|
  165.         |  Name_____________________   | _______ |
  166.         | |_________________________|  ||__Ok___|| 
  167.         |  Network address__________   | _______ |      
  168.         | |_________________________|  ||Cancel_||
  169.         |  Service or port             |         |
  170.         | () Telnet  ____________      |         |
  171.         | () Custom |____________|     |         |
  172.         | Configuration                | _______ |  
  173.         | __________________________   ||_ Help_||
  174.         ||__________________________|  |         |
  175.         |______________________________|_________|
  176.  
  177. In the 'Name' field, enter the name of the session ('Foobar.com FTP site', 'Shell Account' etc etc.
  178. Then, in the 'Network address' field, enter the IP address or URL of the computer you want to 
  179. connect to (e.g. shell.foobarisp.com, 127.0.0.1, ftp.someftparchive.com, news.somedomain.com)
  180. Click Custom then type the port number (port numbers above.) Then select a terminal emulation 
  181. type from the 'Configuration' field. Hit Ok, click on the session you've just created and you are using Ewan.
  182. If ur a r1ch k1dd13 and own a Mac, try using NiftyTelnet (dead simple to use) or NCSA Telnet (very configurable.) 
  183. Find these telnet clients at TUCOWS or other software archive (www.tucows.com)
  184. That's a basic intro to telnet, but that's all you need to know to get started. Have phun.
  185.  
  186. Shoutz to: J.C., wermboy(hey whats the weather like), LordPsYchO, Braxus, 
  187.        ProtocolD(Thanx for info on Novell) , d4hp, XeXeN, kM and all the 
  188.        others on #hackersclub who have taught me something.
  189.  
  190. ----
  191.  
  192. ********